import request from '@/utils/request'

//用户登录
export function login(data) {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}
//静态菜单管理
export function getInfo_1(data) {
  return request({
    url: '/api/menu/load-sys-menu-by-user',
    method: 'post',
    data
  })
}

//动态菜单管理
export function getInfo(data) {
  return request({
    url: '/api/menu/load-sys-menu-with-system-code',
    method: 'post',
    data
  })
}
//用户登录注销
export function logout(data) {
  return request({
    url: '/api/user/logout',
    method: 'post',
    data
  })
}
//用户密码修改
export function updatePassword(data) {
  return request({
    url: '/api/user/user-update-password',
    method: 'post',
    data
  })
}
//刷新Token
export function refreshtoken(data) {
  return request({
    url: '/api/user/refresh-token',
    method: 'post',
    data
  })
}
//字典管理
export function getdictionary(data) {
  return request({
    url: '/api/dictionary/load-dictionary',
    method: 'post',
    data: data
  })
}

//车辆字典管理   基础数据加载
export function getVehicleDictionary(data) {
  return request({
    url: '/rec/rec_info/load-rec-info-all',        
    method: 'post',
    data
  })
}
//重置密码resetAccountUserPassword
export function resetAccountUserPassword(data) {
  return request({
    url: '/api/user/update/password',        
    method: 'post',
    data
  })
}
//根据用户类型获取apk链接
export function getApkLink(data) {
  return request({
    url: '/api/apk/download',        
    method: 'post',
    data
  })
}